/**
 * 
 */
package org.cnbi.utils.pojo.dash;

import org.cnbi.utils.pojo.CommonBean;
import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * Copyright © 2014中国经邦. All rights reserved.
 * @author 龚佳新
 * @date 2014年5月6日上午11:30:34
 * @cnbi-utils
 */
public class UserDefinedFormulaBean extends CommonBean {
	
	private String id;
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String exp;
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String params[];
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String formula;
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private String type;
	
	public UserDefinedFormulaBean(){
		
	}
    public UserDefinedFormulaBean(String exp,String []params,String formula){
    	this.exp = exp;
    	this.params = params;
    	this.formula = formula;
		
	}
	public String getExp() {
		return exp;
	}

	public void setExp(String exp) {
		this.exp = exp;
	}

	public String[] getParams() {
		return params;
	}

	public void setParams(String[] params) {
		this.params = params;
	}

	public String getFormula() {
		return formula;
	}

	public void setFormula(String formula) {
		this.formula = formula;
	}
	
	

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "{\"id\":\""+id+"\",\"sname\":\""+sname+"\",\"scode\":\""+scode+"\",\"formula\":\""+formula+"\",\"exp\":\""+exp+"\",\"params\":\""+params+"\"}";
	}

	
	

}
